import { PageReq } from "./page";
import { User } from "./user";
import { Video } from "./video";

export interface Danmaku {
  id: string;
  content: string;
  videoId: Video["id"];
  createUser: User["id"];
  time: number;
  type: 0 | 1 | 2; // 弹幕类型，0滚动，1顶部，2底部
  color: number;
  createTime: string;
  user?: User;
  video?: Video;
}

export interface PageParams extends PageReq {
  timeIsAsc?: boolean;
  createTimeIsAsc?: boolean;
  videoId?: Video["id"];
}
